<?php

$redis = new \Redis();
$redis->connect("127.0.0.1", 6379);

$redis->publish('chan-2', '6666');
$redis->publish('chan-1', 'dasfasf');